package com.gzy.rpsm_property.service;

import com.gzy.rpsm_property.pojo.Message;
import com.gzy.rpsm_property.pojo.Ms;
import com.gzy.rpsm_property.pojo.Reply;

import java.util.List;

public interface MessageService {
    void updateMessage(int messageId, String messageContent, String messageTitle);

    Message getMessageById(int messageId);
    List<Ms> getAllMessages();
    List<Ms> getUserAndMessagesByUsername(String username);
    void sendMessage(int userId, String content, String title);
    void replyToMessage(String messageId, String replyContent, String replyTitle, String replyUserName);
    void addReply(Reply reply);
    List<Reply> getRepliesByMessageId(int replyMessageId);
}






